﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Web;
using MLBService.Interfaces;
using MLBService.Resources;

namespace Client
{
    class Program
    {
        static void Main(string[] args)
        {
            //To import System.ServiceModel.Web, you'll need to change the Target Framework
            //from .NET Framework 4 Client Profile to .NET Framework 4

            Console.ReadLine();

            WebChannelFactory<IMlb> cf = new WebChannelFactory<IMlb>(new Uri("http://localhost:51985/mlb"));
            IMlb client = cf.CreateChannel();

            Console.WriteLine(client.GetFranchiseById("101").Name);
            Console.WriteLine(client.GetFranchiseById("106").Name + " (boo hoo!!)");
            
            Console.ReadLine();

        }
    }
}
